package com.zj.docker.Repository;

import com.zj.docker.domain.ImagesInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Auther: zj
 * @Date: 2018/12/3 16:37
 * @Description:
 */
public interface ImagesInfoRepository extends JpaRepository<ImagesInfo,Integer>{

    ImagesInfo findOneByFullName(String fullName);

    ImagesInfo findOneByImageId(String imageId);

    List<ImagesInfo> findAllByHasOpen(Integer hasOpen);

    Page<ImagesInfo> findAllByHasOpen(Integer hasOpen,Pageable pageable);

    List<ImagesInfo> findAllByAuthorName(String authorName);

    Page<ImagesInfo> findAllByAuthorName(String authorName,Pageable pageable);
}
